package cn.jiyun.pojo.function;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("backstage_user")
public class User {
    private Integer id;
    private Integer userId;
    private String userName;
    private String userPhoto;
    private String userPhone;
    private Integer userType;
    private Integer userSex;
    private LocalDate userBirthday;
    private Integer userAge;
    private String userEmail;
    private String registeredCity;
    private String administrativeRegion;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registrationTime;
    private String userPassword;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date1;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date2;

//    @TableField(exist = false)
//    private String count;
}
